package com.jintian.smart.kernel.flowable.flowable.cmd;

import org.flowable.common.engine.impl.interceptor.CommandContext;
import org.flowable.engine.impl.util.CommandContextUtil;

public class DeleteIdentityLinkForTaskCmd implements org.flowable.common.engine.impl.interceptor.Command<Object> {
    protected String userId;
    protected String taskId;
    protected String type;

    public DeleteIdentityLinkForTaskCmd(String taskId, String userId, String type) {
        this.taskId = taskId;
        this.userId = userId;
        this.type = type;
    }

    @Override
    public Void execute(CommandContext commandContext) {
        CommandContextUtil.getIdentityLinkService(commandContext).deleteIdentityLinksByTaskId(this.taskId);
        return null;
    }
}
